//package com.liyuxiang.feign.config;
//
//import feign.RequestInterceptor;
//import feign.RequestTemplate;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @Author: liyuxiang
// * @Date: 2025/8/15 20:27
// * @Description: TODO
// */
//@Configuration
//@Slf4j
//public class FeignConfig {
////    @Bean
////    public RequestInterceptor requestInterceptor() {
////        log.info("FeignConfig...requestInterceptor...");
////        return template -> {
////            // 自动将当前用户的 Token 添加到 Feign 请求头中
//////            log.info("OpenFeign携带token：{}", SecurityUtils.getToken());
//////            template.header("Authorization", "Bearer " + SecurityUtils.getToken());
////            template.header("inner", "true");
////        };
////    }
//    @Bean
//    public RequestInterceptor requestInterceptor() {
//        return new RequestInterceptor() {
//            @Override
//            public void apply(RequestTemplate template) {
//                template.header("Common-Header-Name", "Common-Header-Value");
//            }
//        };
//    }
//}
